package main;

/**
 * 
 * @author heantai
 *
 */
public class Xsql {
	
	private StringBuilder builder;
	
	/**
	 * select * from user where 1=1 name='jerry' and age=14
	 * @param head 为select * from user where 1=1 或者select * from user where 1=1 name='jerry'
	 */
	public Xsql(String head) {
		builder=new StringBuilder(head);
	}
	
	public void append(String condition){
		builder.append(" /~ and ").append(condition).append(" ~/ ");
	}
	
	public String getXsql(){
		return builder.toString();
	}

}